package org.com.ashen.service.dao;

import org.com.ashen.dal.dataobject.DataSourceDO;
import org.com.ashen.dal.mapper.DataSourceMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by yizhen on 16-12-18.
 */
@Service("datasourceDao")
public class DataSourceDao {
	
    @Resource
    DataSourceMapper dataSourceMapper;
    public List<DataSourceDO> query() {
        return dataSourceMapper.getAllDataSources();

    }
    
    public List<DataSourceDO> queryDataSource(String datasource_name) {
        return dataSourceMapper.getDataSource(datasource_name);

    }
}
